package com.sxfq.loansupermarket.app.dto;

/**
 * 服务器响应app结果对象
 * 
 * @author chengpan
 *
 * @param <T>
 */
public class AppResponseResult {

	/**
	 * 服务器响应编号
	 */
	private String code;
	/**
	 * 服务器响应消息
	 */
	private String msg;
	/**
	 * 服务器响应结果对象
	 */
	private Object result;

	/**
	 * 构造函数
	 */
	public AppResponseResult() {
		super();
	}

	/**
	 * 构造函数
	 * 
	 * @param code
	 * @param msg
	 * @param result
	 */
	public AppResponseResult(String code, String msg, Object result) {
		super();
		this.code = code;
		this.msg = msg;
		this.result = result;
	}

	public static AppResponseResult build(String code, String msg) {
		return new AppResponseResult(code, msg, null);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
